﻿/// <reference path="../jquery.min.js" />
/// <reference path="../module/rsseasy.v2.js" />
/// <reference path="../module/rssapi.v2.js" />


$(function () {

    //获取小于10的数据
    var lbspage = $("#lbspage");
    lbspage.load(function () {
        RssApi.Table.List("corp").keyvalue("getdistance", "116.40387397,39.91488908").condition({ "rssdistance": "116.40387397,39.91488908|{lt~10}}" }).setLoading().getJson(function (data) {
            $("#lbsitemwrap").mapview(data, {
                "shijian": function (val) {
                    return new Date(val * 1000).toString("yyyy-MM-dd HH:mm:ss");
                }
            });
        });
    });
})